<?php
/**
 * Copyright (c) 2006, PORTALIER Julien
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @package      FeatherPHP
 * @subpackage   Config
 * @copyright    Copyright (c) 2006, Julien PORTALIER
 * @link         http://feather.portalier.com
 * @license      http://www.opensource.org/licenses/mit-license.php The MIT License
 */

// debug & errors
define(DEBUG, 2);
error_reporting(DEBUG ? E_ALL : false);

define('CR', "\r");
define('LF', "\n");
define('CRLF', CR.LF);

// config
class Config
{
	const website_name      = '';
	const website_email     = '';
	const website_copyright = '';
	
	// autoload
	public static $autoloads = array(
		'libs'       => array(/*'request', 'timer'*/),
		'components' => array(/*'session', 'locale'*/),
		'helpers'    => array('xhtml', 'javascript'),
		'database'   => false
	);
	
	// routes
	public static $routes = array(
		':^/$:'     => 'pages/index/',
		':^error/:' => 'errors/index/'
	);
	
	// session
	const session_auto   = true;
	const session_cookie = 'FEATHER_PHP_2';
	const session_expire = '+5 hours';
	const session_path   = '/';
	const session_domain = null;
	const session_string = 'fdcce5a99626576d8a69a93b2d57a924';
	
	// locale
	const charset         = 'UTF-8';
	const locale_timezone = 'Europe/Paris';
	
	// cache
#	const cache_lifetime  = DEBUG ? '+1 second' : '+1 day'; # '+1 hour'
	const cache_lifetime  = '+1 second';
	
	// should administrators override all access rights?
	const power_privileges = false;
}

// locale
mb_language('uni');
mb_internal_encoding(Config::charset);

// gzip output
ob_start("ob_gzhandler");
?>